package com.share.thread;

import java.util.HashMap;

/**
 * @desc:
 * @author:caifan
 * @date:2022/4/10
 */
public class HashMapRedBlackTreeDemo {
    public static void main(String[] args) {
        HashMap map = new HashMap<HashMapRedBlackTreeDemo, Integer>(1);
        for (int i = 0; i < 1000; i++) {
            HashMapRedBlackTreeDemo rb = new HashMapRedBlackTreeDemo();
            map.put(rb, null);
        }
        System.out.println("运行结束");
    }

    @Override
    public int hashCode() {
        return 1;
    }
}
